<template>
  <div class="security-detail-pop">
    <div class="security-detail-pop-title">
      违禁品详情
    </div>
    <img src="" alt="" srcset="" class="security-detail-pop-img" />
    <div class="security-detail-pop-content">
      <div class="security-detail-pop-content-item" v-for="(item, index) in warningDetailPop" :key="index">
        <span>{{ item.label }}</span>
        <span>{{ item.value }}</span>
        <img :src="item.icon" alt="" srcset="" v-if="item.icon" class="icon" />
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator'
@Component({
  name: 'security-detail-pop'
})
export default class SecurityDetailPop extends Vue {
  @Prop({
    default: () => [
      {
        label: '名称：',
        value: '弹簧刀'
      },
      {
        label: '类型：',
        value: '管制刀具'
      },
      {
        label: '时间：',
        value: '202107-23 15:32:56'
      },
      {
        label: '地点：',
        value: '白马区客运站'
      }
    ]
  })
  private warningDetailPop!: any[]
}
</script>

<style lang="scss" scoped>
.security-detail-pop {
  box-sizing: border-box;
  width: 274px;
  height: 312px;
  background: url('../../../../../assets/images/situational-awareness/prohibite-bac-pop.png') no-repeat center;
  padding: 40px 32px 30px 40px;
  font-family: 'PingFang Regular';
  text-align: left;
  &-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
  }
  &-img {
    width: 192px;
    height: 75px;
    background: #fff;
  }
  &-content {
    // margin-top: 10px;
    box-sizing: border-box;
    font-size: 14px;
    // font-weight: 500;
    color: #ffffff;
    &-item {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      width: 100%;
      height: 28px;
      position: relative;
      padding-left: 20px;
      &::after {
        content: '';
        display: block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #0c81fe;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(0, -50%);
      }
      .icon {
        width: 16px;
        height: 16px;
        padding-left: 5px;
      }
    }
  }
}
</style>
